#include <stdio.h>
#include <math.h>
int main()
{
    int n,m,t=0;
    while (scanf("%d%d",&n,&m)!=EOF)
    {
        if (n==0 && m==0)break;
        double a;
        if (n*n-4*m<0)printf("No\n");
        else
        {
            a=(-n+sqrt(n*n-4*m))/2;
            if (a==int(a))printf("Yes\n");
            else
            {
                a=(-n-sqrt(n*n-4*m))/2;
                if (a==int(a))printf("Yes\n");
                else printf("No\n");
            }
        }
    }
    return 0;
}
